import {createWebHashHistory, createRouter} from "vue-router";

const routes = [
    {
        path: '/',
        redirect: '/index'
    },
    {
        path: '/demo',
        name: 'Demo',
        component: () => import('../views/demo.vue')
    },
    {
        path: '/redirect',
        name: 'Redirect',
        component: () => import('../views/redirect.vue')
    },
    {
        path: '/index',
        name: 'Index',
        component: () => import('../views/index.vue')
    },
    {
        path: '/pcenter',
        name: 'PCenter',
        component: () => import('../views/pcenter/index.vue')
    },
    {
        path: '/his-push',
        name: 'HistoryPush',
        component: () => import('../views/his-push/index.vue')
    },
    {
        path: '/detail',
        name: 'Detail',
        component: () => import('../views/his-push/detail.vue')
    },
    {
        path: '/recommend',
        name: 'Recommend',
        component: () => import('../views/recommend/index.vue')
    },
]
const router = createRouter({
    history: createWebHashHistory(),
    routes,
})
export default router
